package co.edu.unal.model;
import java.awt.Graphics;
import java.awt.Rectangle;

public class Text extends ObjetoGrafico {
	public Text(int x, int y, int w, int h) {
		super(x, y, w, h, false);
		setValue("ABC abc");
	}
	
	public String getValue() {
		return value;
	}
	
	public void setValue(String value){
		this.value = value;
	}

	@Override
	public void paint(Graphics g) {
		Rectangle r = getBounds();
		g.drawString(value, r.x, r.y);		
	}
	private String value;
}

